using System;
using Castle.ActiveRecord;
using CosyTrade.Data;

namespace CosyTrade.Financial
{
    [AddPropertyChangedNotifyInterface, PropertyChangedNotify]
    [ActiveRecord("tbPayrollTableItemDetail"), Serializable]
    public class PayrollTableItemDetail : BusinessObject
    {
        private readonly Guid primaryKey = Guid.NewGuid();
        private string detailMemo;
        private double money;
        private double money1;

        [PrimaryKey(PrimaryKeyType.Assigned, "ROWGUID",
            Access = PropertyAccess.NosetterCamelcase)]
        public override Guid PrimaryKey
        {
            get { return primaryKey; }
        }

        [Property]
        public string DetailMemo
        {
            get { return detailMemo; }
            set { detailMemo = value; }
        }

        [Property]
        public double Money
        {
            get { return money; }
            set { money = value; }
        }

        [Property]
        public double Money1
        {
            get { return money1; }
            set { money1 = value; }
        }
    }
}